package myTest;
import java.io.*;

public class readBusAndStation{
	public static void main(String[] args){
		try{
			String s;
			String FilePath="C:\\Users\\ChengXin\\Desktop\\busANDstation.txt";
			BufferedReader in = new BufferedReader(new FileReader(FilePath));
			s = in.readLine();
			String bus[] = s.split(" ");
			for(int i=1; i<bus.length; i++)
				System.out.print(bus[i]+",");
			System.out.print("\n");
			
			s = in.readLine();
			String station[] = s.split(" ");
			for(int i=1; i<station.length; i++)
				System.out.print(station[i]+",");
			
		}
		catch(Exception e){
			System.out.println(e.toString());
		}
	}
}